Introduction to Delegate in C#

Delegate is a reference type variable that can hold the reference of a function. It is like a pointer to a method, in C++ or C. Delegates are implicitly driven from the System.Delegate Class. We can say that it is an object, or reference type variable, which refers to a function, and can hold the... » read more

Pass DataTable from Controller to View in ASP.Net MVC

In this article, you are going to learn how to pass a DataTable from a controller to a razor view in ASP.NET MVC. The table passed will be displayed on the view page. Pass DataTable from Controller to View To get started, let’s create a database table like the following: CREATE TABLE [dbo].[Novel]( [NovelID] [int]... » read more

Create HTML Table dynamically in ASP.NET using C#

In this example, we are going to show you how to create an HTML table dynamically in ASP.NET using C#. Create an HTML dynamically in ASP.NET For many reasons, a developer might need to create a table dynamically. For example, looping through a DataTable in order to print out the rows on the web page... » read more

Introduction to Python List

All programming languages provide a way to declare multiple variables through a single statement. Consider a case where you are required to declare 10 variables. You can declare these 10 variables using a unique name. e.g v1,v2,v3…v10. But what if you are required to declare 1000 variables? Or even 10000 variables? To solve this issue... » read more

Slide down elements using jQuery

In this lesson, you will learn how to show an already hidden web element by sliding it down and animating its height. Introduction to Slide down elements in jQuery The syntax for .slideDown() function is: .slideDown( [duration ] [, easing function ] [, callback function ] ) The slideDown() function animates the height of the selected... » read more

AJAX and jQuery

In this lesson, you will learn the basics of Ajax and how it used with jQuery. Introduction to Ajax If you search something for Google, it shows you a relevant list of suggestions without refreshing the page. This is achieved through Ajax. It is not a new technology but a term describe some of the... » read more

Form validation in jQuery

In this lesson, you will learn how to validate a web form using the jQuery. How to validate forms in jQuery? When collecting information from the web form, you want to make sure that the user enters all the mandatory required information, as well as the data being entered, is in the correct format. For... » read more

Understanding forms in jQuery

In this lesson, you will learn about the form handling in jQuery. Introduction to forms in jQuery Web forms provide a way of collecting information from users. The user can enter his/her shipping detail into web forms or write a message to send an email using these forms. Some sites are heavily based on user’s data... » read more

The ‘on’ function in jQuery

In this lesson, you will learn more about advanced event management. Introdunction to the ‘on’ function in jQuery The on() function is used in place of event-specific functions, like change or click. It allows you to specify an event, a function attached to that particular event, along with the additional parameters for the event-handling function... » read more

Hover event in jQuery

In this lesson, you will learn about the jQuery hover event, which is similar to mouse enter and mouse leave events. The hover event is fired when the mouse pointer enters and leaves the elements. Introduction to Hover event in jQuery The syntax of the hover event is: .hover(function_for_mouseIn(){}, function_for_mouseOut(){}); This is a short form of:... » read more

Keyboard events in jQuery

In this lesson, you will learn about the jQuery keyboard events: Keydown() and Keyup() events. These events are generally used with keypress() event, which is fired when the key is pressed. Introduction to Keyboard events in jQuery The syntax for these events are: Keydown(function(){}); Keyup(function(){}); The argument here is optional and if provided, executes every time... » read more

Select event in jQuery

In this lesson, you will learn about the jQuery select event, which is fired by the web browser when a user selects, completes or partial types in a text field or text area. Introduction to Select event in jQuery This event is limited to form elements: <input type="text"> and <textarea> boxes. When the select event is... » read more

Change event in jQuery

In this lesson, you will learn how to use change event categorized as form events in the jQuery. The change event is fired when the value of any element on the web page changes. This event is limited to form menus like <input>, <textarea> and <select> elements. Introduction to Change event in jQuery For selected elements... » read more

Submit event in jQuery

In this lesson, you will learn about the submit event in the jQuery. Introduction to Submit Event in jQuery Whenever a user enters input values of the form and submits it by clicking on the submit button, or by pressing enter, the submit event is fired by the web browser. You can catch this event... » read more

Focus event in jQuery

In this lesson, you will learn how to use focus event in jQuery to make web pages more interactive and alive. Introduction to Focus event in jQuery When a user clicks or tabs on a text field, it gets focused. In other words, it gets the web browser’s attention. This event is used mostly when you... » read more